package com.sy.mapper;

import com.sy.bean.Goods;
import com.sy.bean.pucharse.excel.GoodsExcel;
import com.sy.bean.pucharse.excel.PurchaseExcel;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface GoodsMapper extends IMapper<Goods> {
    /**
     * 删除商品
     * @param id
     * @return
     */
    int deleteGood(int id);

    /**
     * 导出的商品列表
     * @param map
     * @return
     */
    List<GoodsExcel> exportGoods(Map map);
}
